/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lab2;

/**
 *
 * @author rafael
 */
public class MainGrafo {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Grafo grf = Grafo.criarGrafo();
        No u, w;
        grf.getNos();
        u = grf.getNo(args[0]);
        w = grf.getNo(args[1]);
        if(u==null || w==null)
        {
            System.out.println("Entrada invalida");
        }
        else
        {
            System.out.println(grf.menorCaminho(u, w));
        }
    }

}
